/*
 * @Description: 描述信息
 * @Version: 版本号
 * @Author: xuebao
 * @Date: 2023-12-14 21:18:42
 * @LastEditors: xuebao
 * @LastEditTime: 2023-12-14 21:33:58
 */
import { Button, Form, Space } from 'antd'

export default function SearchForm(props: any) {
  return (
    <Form className='search-form' layout='inline' form={props.form} initialValues={props.initialValues}>
      {props.children}
      <Form.Item>
        <Space>
          <Button type='primary' className='mr10' onClick={props.submit}>
            搜索
          </Button>
          <Button type='default' onClick={props.reset}>
            重置
          </Button>
        </Space>
      </Form.Item>
    </Form>
  )
}
